package com.huawang.mdesign.model.service.dto.changeanalyse;

import com.huawang.business.constants.ParamErrorConstants;
import com.huawang.business.dto.ProjectIdDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * @author baibf
 * @description 标记变更节点DTO
 * @date 2023/4/21 18:32
 **/
@Data
public class MarkChangeNodeDto extends ProjectIdDTO {

    @NotBlank(message = ParamErrorConstants.NO_PROJECT_ID)
    private String projectId;

    @Schema(title = "变更标记模型")
    @NotEmpty(message = ParamErrorConstants.NO_INSTANCE_IDS)
    private List<String> instanceIds;

    @Schema(title = "变更标记  " +
            "可能影响：" + "MayEffect" +
            "，确定影响：" + "ConfirmEffect" +
            "，不受影响：" + "NotEffect")
    @NotBlank(message = ParamErrorConstants.NO_CHANGE_MARK)
    private String changeMark;

    @Schema(title = "变更分析追溯图模型Id")
    @NotBlank(message = ParamErrorConstants.NO_MAP_ID)
    private String mapId;
}
